package com.urea.system.domain.vo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.urea.common.annotation.Excel;
import com.urea.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 车队用户关系对象 t_fleet_user
 * 
 * @author liuzd
 * @date 2023-08-01
 */
@Data
@ToString
public class FleetUserVo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    @ApiModelProperty( "用户id")
    private Long uid;

    /** 车队id */
    @Excel(name = "车队id")
    @ApiModelProperty( "车队id")
    private Long fleetId;

    /** 是否为队长;0否，1是 */
    @Excel(name = "是否为队长;0否，1是")
    @ApiModelProperty( "是否为队长;0否，1是")
    private String isMaster;
    /** 车队名称*/
    @ApiModelProperty( "车队名称")
    private String fleetName;
    // 车队账号
    private String fleetAccount;
    /** 车队余额*/
    @ApiModelProperty( "车队余额")
    private BigDecimal fleetBalance;
    @ApiModelProperty( "用户余额")
    private BigDecimal balance;
    /** 队长手机号*/
    @ApiModelProperty( "手机号")
    private String phone;
    /** 用户名*/
    @ApiModelProperty( "用户名")
    private String nickName;
    @ApiModelProperty( "绑定设备数")
    private int terminalCount;

    private String remark;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty( "创建时间")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdTime;
}
